import { lazy } from "react";


export const HomeChildren = [
    {
        path: '/home/index',
        element: lazy(() => import('../pages/Home/HomeChildren/Index.jsx'))
    },
    {
        path: '/home/about',
        element: lazy(() => import('../pages/Home/HomeChildren/About.jsx'))
    }
]

const router = [
    {
        path: '/',
        to: '/home/index'
    },
    {
        path: '/home',
        element: lazy(() => import('../pages/Home/Home.jsx')),
        children: HomeChildren
    },
    {
        path: '/login',
        element: lazy(() => import('../pages/Login.jsx'))
    }
]

export default router;

